package common

import (
	"errors"
	"github.com/redis/go-redis/v9"
	"gorm.io/gorm"
)

var (
	ErrPassword          = errors.New("密码错误")
	ErrRefreshToken      = errors.New("token 无效")
	ErrRepeatEmail       = errors.New("邮箱已注册")
	ErrNotAuthor         = errors.New("不是作者")
	ErrRepeatLike        = errors.New("重复操作")
	ErrRepeatCollect     = errors.New("重复操作")
	ErrErrRecordNotFound = gorm.ErrRecordNotFound
	ErrCacheNotExist     = redis.Nil
)
